package com.hoangqp.android.stardictcore;

public class FileTooBigException extends Exception {

	/**
	 * UID
	 */
	private static final long serialVersionUID = -7700403830283069804L;

	/**
     * The name of the file that is too big
     */
    protected String fileName;
    
    /**
     * The max size(MB) of attachment
     */
    protected String maxSize;

    /**
     * constructor
     */
    public FileTooBigException() {
        super();
    }
    
    /**
     * @param message message associated with the exception
     * @param fileName the filename
     * @param cause cause of the exception
     */
    public FileTooBigException(final String message, final String fileName, final Throwable cause) {
        super(message, cause);
        this.fileName = fileName;
    }

    /**
     * @param message message associated with the exception
     * @param fileName the filename
     */
    public FileTooBigException(final String message, final String fileName) {
        super(message);
        this.fileName = fileName;
    }
    
    public FileTooBigException(final String message, final String fileName, final String maxSize) {
        super(message);
        this.fileName = fileName;
        this.maxSize = maxSize;
     }

    /**
     * @param fileName the filename
     * @param cause cause of the exception
     */
    public FileTooBigException(final String fileName, final Throwable cause) {
        super(cause);
        this.fileName = fileName;
    }

    /**
     * @return the file name (null if it hasn't been set)
     */
    public String getFileName() {
        return fileName;
    }
    
    /**
     * @return the attachment max size
     */
    public String getMaxSize() {
		return maxSize;
	}
}
